package com.joezhou.spring.aspect;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author JoeZhou
 */
@Service
@Slf4j
public class UserServiceImpl {

    public int[] selectById(int id) {
        log.info("执行业务方法...");
        if (id < 0) {
            throw new NullPointerException();
        }
        return new int[]{1, 2, 3};
    }
}